package cn.org.qary.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Id;

/**
 * 新闻类， 描述新闻的相关属性
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class News {

  @Id
  @KeySql(useGeneratedKeys = true)
  private Integer id;
  private String title;
  private String content;

}
